<!--正文start-->
<div class="service_center w_990 o_a">
	<div class="col_main f_l">
        <!--问题搜索  start-->
        <div class="help_search">
            <div class="ques c_f">
                <form method="get" name="" action="/home/help/search">
                <span class="serv_bg"></span>
                <span class="fs_18 ff_yh c_666 f_l">帮助搜索</span>
                <input class="fs_14 t_ipt c_999" type="text" name="q" value="<?php echo isset($_GET['q'])?$_GET['q']:'请简单完整输入你的问题，如：怎样注册帐号';?>" onblur="if(this.value==''){this.value='请简单完整输入你的问题，如：怎样注册帐号';this.style.color='#999'}" onfocus="if(this.value=='请简单完整输入你的问题，如：怎样注册帐号'){this.value='';this.style.color='#333'}" />
                <button class="btn f_l" id="" type="submit" value="搜索答案">搜索答案</button>
                </form>
            </div>
        </div>
        <!--问题搜索  end-->
        <div class="hr-05"></div>
        <!--买家帮助导航  start-->
        <div class="buyer_guide list_hover">
            <div class="service_hd c_f bg_x"><h2 class="fs_14 c_green2 bg_x">买家帮助导航</h2></div> 
            <div class="bd">
                <ul class="c_666 c_f">
                	<?php foreach ($buyer_help as $key => $value) {?>
                	<li class="item <?php echo (($key+1)%4==0)?'no_mr':''?>">
                        <h3 class="fs_14"><span class="serv_bg bg0<?php echo $key+1;?>"></span><?php echo CHtml::link($value->zhc_title, array('/home/help/list','id'=>$value->zhc_id));?><a href="javascript:"></a></h3>
                        <p class="line_18"><?php echo $value->zhc_desc;?></p>
                    </li>
                	<?php }?>
                </ul>
            </div>
        </div>
        <!--买家帮助导航  end-->
        <div class="hr_15"></div>
        <!--卖家帮助中心  start-->
        <div class="business_help">
            <div class="service_hd c_f bg_x"><h2 class="fs_14 c_green2 bg_x">卖家帮助中心</h2></div> 
            <div class="bd">
                <ul class="content c_666">
                    <?php foreach ($seller_help as $key => $value) {?>
                    	<li <?php echo (($key+1)%2==0)?'class="bg1"':''?>>
	                        <h3 class="fs_14"><?php echo $value->zhc_title;?></h3>
	                        <p>
	                        	<?php 
	                        		$buyer_help_list = Help::model()->findAll('zhc_id ='.$value->zhc_id);
	                        		foreach ($buyer_help_list as $key => $value) {
	                        			# code...
	                        			echo CHtml::link($value->zhe_title, array('/home/help/list', 'id'=>$value->zhe_id));
	                        		}
	                        	?>
	                      	</p>
	                    </li>
                    <?php }?>
                </ul>
            </div>
        </div>
        <!--卖家帮助中心  end-->
        <div class="hr_12"></div>
        <!--商城公告 start-->
        <div class="shop_notice">
        	<div class="service_hd c_f bg_x"><h2 class="fs_14 c_green2 bg_x">商城公告</h2></div>
            <div class="bd">
            <?php $this->widget('ext.NewsBlockWidget', array(
								'znc_id'=>5, 
								'limit'=>10, 
								'banner'=>0,
								'ulclass'=>'news_li c_f ff_s', 
								'showDate'=>true,
								'offset'=>0,
							)); ?>           	
            </div> 
        </div>
    	<!--商城公告 end-->
    </div>
    <div class="col_sub f_r">
        <!--常见问题  start-->
        <div class="common_ques pub_box">
        	<div class="hd bg_x pub_hd"><h2 class="fs_14">常见问题</h2></div>
            <div class="bd">
                <ul class="news_li">
                	<?php foreach ($faq as $key => $value) {?>
            			<li><?php echo CHtml::link($value->zhe_title, array('/home/help/detail', 'id'=>$value->zhe_id));?></li>
            		<?php }?>
                </ul>
            </div>
        </div>
        <!--常见问题  end-->
        <!--客户服务  start-->
        <div class="customer_serv pub_box mt10">
            <div class="hd"><h2 class="fs_14">客户服务</h2></div>
            <div class="bd">
                <div class="advice">
                    <p><span class="ico ico_ser01"></span><a href="javascript:">我要提建议</a></p>
                    <p><span class="ico ico_ser02"></span><span>客服热线：<em class="c_f60"><?php echo F::setting('hottel')?></em></span></p>
                    <p><span class="ico ico_ser03"></span><span>客服邮箱：<a href="mailTo:<?php echo F::setting('site_email')?>" class="c_f60"><?php echo F::setting('site_email')?></a></span></p>
                </div>
                <div class="business_qq">
                    <h3>在线客服</h3>
                    <div class="qq">
                    <?php $services = CmpServices::model()->getServices(1);?>
                    <?php  if(!empty($services)){ foreach($services as $val){
                    	 if($val->zcs_type==1){
						 	 //QQ账号 
							echo CHtml::link('<span class="ico_qq qq_online1"></span>'.$val->zcs_name,'http://wpa.qq.com/msgrd?V=1&amp;Uin='.$val->zcs_account.'&amp;Site='.Yii::app()->name.'&amp;Menu=yes',array('class'=>'c_06c','target'=>'_blank'));
						 }elseif($val->zcs_type==2){
							 //MSN 
							echo CHtml::link($val->zcs_name,'msnim:chat?contact='.$val->zcs_account,array('class'=>'c_06c','target'=>'_blank'));
						 }elseif($val->zcs_type==3){
							 //淘宝旺旺 
							echo CHtml::link($val->zcs_name,'http://amos1.taobao.com/msg.ww?v=2&uid='.$val->zcs_account.'&s=2',array('class'=>'c_06c','target'=>'_blank'));
						 }
                     }} ?>
                    </div>
                </div>
            </div>
        </div>
        <!--客户服务  end-->
    </div>
</div>
<!--正文end-->